//
//  PublishCenterVC.swift
//  YunshuApp
//
//  Created by 周文杰 on 2017/6/7.
//  Copyright © 2017年 zwj. All rights reserved.
//

import UIKit

class PublishCenterVC: UIViewController {

    static let VCID = "PublishCenterVC"

    @IBOutlet weak var templatesEntrance: UIView!
    
    @IBOutlet weak var historyEntrance: UIView!
    
    
    
    override func viewDidLoad() {
        super.viewDidLoad()
        self.title = "发布中心"

        let ges = UITapGestureRecognizer.init(target: self, action: #selector(PublishCenterVC.onTapTemplates))
        templatesEntrance.addGestureRecognizer(ges)
        
        let ges2 = UITapGestureRecognizer.init(target: self, action: #selector(PublishCenterVC.onTapHistory))
        historyEntrance.addGestureRecognizer(ges2)

    }

    @objc func onTapTemplates() {
        let vc:TemplatesListVC = UIStoryboard.init(name: "Xianhuo", bundle: Bundle.main).instantiateViewController(withIdentifier: "TemplatesListVC") as! TemplatesListVC
        vc.isChoosing = false
        self.navigationController?.pushViewController(vc, animated: true)

    }
    
    @objc func onTapHistory() {
        let vc:PublishHistoryVC = PublishHistoryVC.init()
        self.navigationController?.pushViewController(vc, animated: true)

    }
    
    @IBAction func onTapPublish(_ sender: Any) {
        let vc = PublishVC.init()
        self.navigationController?.pushViewController(vc, animated: true)

    }


    
}
